#parse("/WEB-INF/views/admin/inc/common.vm")
#header($message.admin.title "SiteConfigMenu")
<body>
    <div id="page">
#sysHeader()
        <div id="content" class="clearfix">
            <div id="main">
                <h1>$message.menu.site.config</h1>

#error($errors.all)
<form id="configForm" method="post" action="siteConfig.do?method=save">
	<input id="id" name="id" type="hidden" value="$!{siteConfig.id}"/>
<fieldset>
<ul>
    <li class="buttonBar right">
        <input type="submit" class="button" name="save" value="$message.button.save"/>
    </li>
    <li>
        <label for="name" class="desc">$message.config.name<span class="req">*</span></label>
        <input id="name" name="name" class="text large" type="text" value="$!{siteConfig.name}"/>
    </li>
    <li>
        <label for="siteURL" class="desc">$message.config.url<span class="req">*</span></label>
        <input id="siteURL" name="siteURL" class="text large" type="text" value="$!{siteConfig.siteURL}"/>
    </li>
    <li>
        <label for="subName" class="desc">$message.config.subName<span class="req">*</span></label>
        <input id="subName" name="subName" class="text large" type="text" value="$!{siteConfig.subName}"/>
    </li>
    <li>
        <label for="limitLength" class="desc">$message.config.appVersion<span class="req">*</span></label>
        <input id="appVersion" name="appVersion" class="text large" type="text" value="$!{siteConfig.appVersion}"/>
    </li>
    <li>
        <label for="ICPNumber" class="desc">$message.config.ICPNumber</label>
        <input id="ICPNumber" name="ICPNumber" class="text large" type="text" value="$!{siteConfig.ICPNumber}"/>
    </li>
    
    <li class="editor">
        <label for="simpleAbout" class="desc">$message.config.simpleAbout<span class="req">*</span></label>
        <textarea id="simpleAbout" name="simpleAbout" rows="5" cols="55">$!{siteConfig.simpleAbout}</textarea>
    </li>
    <li class="editor">
        <label for="siteAbout" class="desc">$message.config.siteAbout<span class="req">*</span></label>
        <textarea name="siteAbout" id="siteAbout" rows="5" cols="55">$!{siteConfig.siteAbout}</textarea>
    </li>
    <li class="buttonBar bottom">
        <input type="submit" class="button" name="save" value="$message.button.save"/>
    </li>
</ul>
</fieldset>
</form>
            </div>
		#menu("admin_content")
        </div>
        #footer()
        </div>
    </div>
</body>
<script type="text/javascript" src="${basePath}FCK/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function (){
  var oFCKeditor = new FCKeditor('siteAbout');
  oFCKeditor.BasePath = "${basePath}FCK/";
  oFCKeditor.Config["CustomConfigurationsPath"] = "${basePath}FCK/adminconfig.js"  ;
  oFCKeditor.Height = 500;
  oFCKeditor.CheckBrowser = true ;
  oFCKeditor.ReplaceTextarea() ;
}
</script>
</html>
